﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.StatusBar, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "ScriptType"))

	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.StatusBar, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Function"))

	_DB:AddCodeHelp("GetMinMaxValues", [=[Returns the minimum and maximum values for the slider]=], [=[GetMinMaxValues()]=])
	_DB:AddCodeHelp("GetValue", [=[Returns the value representing the current position of the slider thumb]=], [=[GetValue()]=])
	_DB:AddCodeHelp("GetRotatesTexture", [=[Returns whether the status bar's texture is rotated to match its orientation]=], [=[GetRotatesTexture()]=])
	_DB:AddCodeHelp("GetStatusBarColor", [=[Returns the color shading used for the status bar's texture]=], [=[GetStatusBarColor()]=])
	_DB:AddCodeHelp("GetOrientation", [=[Returns the orientation of the slider]=], [=[GetOrientation()]=])
	_DB:AddCodeHelp("SetRotatesTexture", [=[Sets whether the status bar's texture is rotated to match its orientation]=], [=[SetRotatesTexture(rotate)]=])
	_DB:AddCodeHelp("GetStatusBarTexture", [=[Returns the `Texture` object used for drawing the filled-in portion of the status bar]=], [=[GetStatusBarTexture()]=])
	_DB:AddCodeHelp("SetOrientation", [=[Sets the orientation of the slider]=], [=[SetOrientation("orientation")]=])
	_DB:AddCodeHelp("SetStatusBarColor", [=[Sets the color shading for the status bar's texture]=], [=[SetStatusBarColor(red, green, blue [, alpha])]=])
	_DB:AddCodeHelp("SetStatusBarTexture", [=[Sets the texture used for drawing the filled-in portion of the status bar]=], [=[SetStatusBarTexture("filename" [, "layer"])]=])
	_DB:AddCodeHelp("SetMinMaxValues", [=[Sets the minimum and maximum values for the slider]=], [=[SetMinMaxValues(minValue, maxValue)]=])
	_DB:AddCodeHelp("SetValue", [=[Sets the value representing the position of the slider thumb]=], [=[SetValue(value)]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.StatusBar, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Property"))

	_DB:AddCodeHelp("StatusBarTexture", [[the texture used for drawing the filled-in portion of the status bar]], IGAS:GetPropertyType("Texture"))
	_DB:AddCodeHelp("StatusBarTexturePath", [[the texture file used for drawing the filled-in portion of the status bar ]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("Value", [[the value of the status bar]], IGAS:GetPropertyType("number"))
	_DB:AddCodeHelp("Orientation", [[the orientation of the status bar]], IGAS:GetPropertyType("Orientation"))
	_DB:AddCodeHelp("MinMaxValue", [[the minimum and maximum values of the status bar]], IGAS:GetPropertyType("MinMaxValue"))
	_DB:AddCodeHelp("Layer", [[the layer used for drawing the filled-in portion of the status bar]], IGAS:GetPropertyType("DrawLayer"))
	_DB:AddCodeHelp("StatusBarColor", [[the color shading for the status bar's texture]], IGAS:GetPropertyType("Color"))
end
